<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>新增</title>
<@fm.header />
</head>
<body>
<div class="easyui-layout" style="text-align: center; height: 500px;" fit="true">
	<div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
	<form id="ff" method="post">
        <table>
            <tr>
                <td><label for="channelName">渠道名称</label></td>
                <td><input class="easyui-validatebox" type="text" name="channelName"></input></td>
            </tr>
            <tr>
                <td><label for="version">版本</label></td>
                <td><input class="easyui-validatebox" type="text" name="version"></input></td>
            </tr>

            <tr>
                <td><label for="packageName">包名</label></td>
                <td><input class="easyui-validatebox" type="text" name="packageName"></input></td>
            </tr>


            <tr>
                <td><label for="base">基地</label></td>
                <td>
                    <input id="cc" class="easyui-combobox" style="width: 155px;" name="baseId" data-options="
						required:true,
						url:'/base/content',
						method:'get',
						valueField:'id',
						textField:'baseName'" />
                </td>
            </tr>


            <tr>
                <td><label for="signature">签名</label></td>
                <td><textarea class="easyui-validatebox" name="signature" style="width:300px;height:100px;" data-options="validType:'length[0,1500]'"></textarea></td>
            </tr>

            <tr>
                <td><label for="wm">wm</label></td>
                <td><input class="easyui-validatebox" type="text" name="wm"></input></td>
            </tr>

            <tr>
                <td><label for="taskTime">任务最大时长(秒)</label></td>
                <td><input class="easyui-validatebox" type="text" name="taskTime" ></input></td>
            </tr>

            <tr>
                <td><label for="taskNum">任务量</label></td>
                <td><input class="easyui-validatebox" type="text" name="taskNum"></input></td>
            </tr>

            <tr>
                <td><label for="isLimit">是否正态</label></td>
                <input type="hidden" name="isLimit" id="isLimit"></input>
                <td> <label><input type="checkbox"  id="isLimitCheck" > </label> </td>
            </tr>
        </table>
	</form>
	</div>
	<div region="south" border="false" style="text-align: center; padding: 5px 5px 5px 0;">
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm('/weiboBrush/add');">提交</a>
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm();">重置</a>
	</div>
</div>
<script>

    $("#isLimitCheck").on('click',function(){
        if ($("#isLimitCheck").is(':checked')) {
            $("#isLimit").val(1);
        } else {
            $("#isLimit").val(0);
        }
    })
</script>
</body>
</html>